package com.zhuss.bean.vo.core.user;

import java.util.Date;
import java.util.List;

import com.zhuss.bean.unit.core.company.DeptBean;
import com.zhuss.bean.unit.core.role.RoleBean;
import com.zhuss.common.AbstractVo;

public class ListUserVo extends AbstractVo {
	
	private Long userId;

    private String username;

    private String pwd;

    private String name;

    private Integer status;

    private Integer age;

    private Integer sex;
    
    private Integer type;

    private Long companyId;

    private String phone;

    private String pic;
    
    private Integer area;

    private Integer isLimitArea;

    private String openId;

    private String creator;

    private Long creatorId;

    private Date createTime;

    private String modifier;

    private Long modifierId;

    private Date modifyTime;
    
    private String statusName;
    
    private String areaName;
    
    private String isLimitAreaName;
    
    private String companyName;
    
    private String typeName;
    
    private List<DeptBean> deptList;
    
    private List<RoleBean> roleList;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd == null ? null : pwd.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }
    
    public Integer getType() {
		return type;
	}
    
    public void setType(Integer type) {
		this.type = type;
	}

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }
    
    public String getPic() {
		return pic;
	}
    
    public void setPic(String pic) {
		this.pic = pic;
	}

    public Integer getArea() {
        return area;
    }

    public void setArea(Integer area) {
    	setCommonArea(area);
		this.area = area;
    }

    public Integer getIsLimitArea() {
		return isLimitArea;
	}

	public void setIsLimitArea(Integer isLimitArea) {
		this.isLimitArea = isLimitArea;
	}

	public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId == null ? null : openId.trim();
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator == null ? null : creator.trim();
    }

    public Long getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(Long creatorId) {
        this.creatorId = creatorId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier == null ? null : modifier.trim();
    }

    public Long getModifierId() {
        return modifierId;
    }

    public void setModifierId(Long modifierId) {
        this.modifierId = modifierId;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

	public String getStatusName() {
		statusName = startStopStatusName(this.status);
		return statusName;
	}

	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}

	public String getAreaName() {
		// areaName = areaName(this.area);
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public String getIsLimitAreaName() {
		isLimitAreaName = isName(this.isLimitArea);
		return isLimitAreaName;
	}

	public void setIsLimitAreaName(String isLimitAreaName) {
		this.isLimitAreaName = isLimitAreaName;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public List<DeptBean> getDeptList() {
		return deptList;
	}

	public void setDeptList(List<DeptBean> deptList) {
		this.deptList = deptList;
	}
	
	public List<RoleBean> getRoleList() {
		return roleList;
	}
	
	public void setRoleList(List<RoleBean> roleList) {
		this.roleList = roleList;
	}
	
	public String getTypeName() {
		typeName = companyTypeName(this.type);
		return typeName;
	}
	
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

}
